package test;

import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 徐海涛
 * Date: 2022-05-10
 * Time: 0:27
 */
public class Demo4 {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        List<String> list2 = func(n);
        System.out.printf("%d = %s\n",n,String.join(" * ",list2));
    }
    public static List<String> func(int n){
        List<String> list = new ArrayList<>();
        for (int i = 2; n > 1 && i*i <= n ; i++) {
            while (n % i == 0) {
                n = n/i;
                list.add(String.valueOf(i));
            }
        }
        if(n > 1) {
            list.add(String.valueOf(n));
        }
        return list;
    }
}
